package com.test.pay.service.impl;

import com.test.pay.dao.OrderDAO;
import com.test.pay.pojo.Order;
import com.test.pay.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderDAO orderDAO;

    @Override
    public void addOrder(Order order) {
        orderDAO.addOrder(order);
    }

    @Override
    public void updateOrder(Order order) {
        orderDAO.updateOrder(order);
    }

    @Override
    public Order getOrderByOrderNum(String orderNum) {
        return orderDAO.getOrderByOrderNum(orderNum);
    }
}
